<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>location对象</title>
</head>
<body>
	<form>
		<input type="text" name="user">
		<input type="password" name="pwd">
		<input type="submit">
	</form>
	<script type="text/javascript">
		console.log(location.host);

	</script>
</body>
</html>